export const key = 'MY-TOKEN' // 此处 key存的是token
export const setItem = (key, value) => {
  localStorage.setItem(key, JSON.stringify(value))
}

export const getItem = (key) => {
  return JSON.parse(localStorage.getItem(key))
}

export const delItem = (key) => {
  localStorage.removeItem(key)
}
